package lab6;

import java.util.Scanner;

public class ReadArray {
	public static int[] readIntArray()
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();
		return readIntArray(n);
	}
	
	public static int[] readIntArray(int n)
	{
		Scanner sc = new Scanner(System.in);
		int[] a = new int[n];
		for (int i=0; i<n; i++)
		{
			a[i]=sc.nextInt();
		}
		sc.close();
		return a;
	}
}
